package com.zhku.laosiji.dao;

import java.util.List;

import com.zhku.laosiji.pojo.Orders;
import com.zhku.laosiji.vo.OrderVo;
import com.zhku.laosiji.vo.OrdersVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrdersMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Orders record);

    int insertSelective(Orders record);

    Orders selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Orders record);

    int updateByPrimaryKey(Orders record);

    List<OrderVo> findAll(@Param("userId") Integer userId);

    Orders selectByOrderCode(String code);

    Integer deleteByCode(String code);
    
    List<OrdersVO> selectAllOrder();
    
    Integer countTotalOrder();
}